import time
import datetime
from functools import wraps


def timestamp():
    """时间戳"""
    return time.time()


def dt_strftime(fmt):
    """
    datetime格式化时间
    :param fmt:
    :return:
    """
    return datetime.datetime.now().strftime(fmt)


def sleep(seconds=1.0):
    """睡眠时间"""
    time.sleep(seconds)


if __name__ == "__main__":
    print(dt_strftime("%Y%m%d%H%M%S"))
